package org.dromara.merchants.domain.vo;

import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.merchants.domain.TaSetMeal;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;


/**
 * 套餐视图对象 ta_set_meal
 *
 * @author xiyin321
 * @date 2024-07-07
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TaSetMeal.class)
public class TaSetMealVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long setMealId;


    /**
     * 所属店铺id
     */
    private Long storeId;

    /**
     * 公共分类id
     */
    @ExcelProperty(value = "菜品分类id")
    private Long categoryId;
    /**
     * 店铺特色分类id
     */
    private Long classificationId;
    /**
     * 套餐名称
     */
    @ExcelProperty(value = "套餐名称")
    private String setMealName;

    /**
     * 套餐价格
     */
    @ExcelProperty(value = "套餐价格")
    private String price;

    /**
     * 售卖状态 0:停售 1:起售
     */
    @ExcelProperty(value = "售卖状态 0:停售 1:起售")
    private String status;

    /**
     * 描述信息
     */
    @ExcelProperty(value = "描述信息")
    private String description;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private Long image;
    @Translation(type = TransConstant.OSS_ID_TO_URL)
    private Long imageUrl;

    private TaStoreVo store;
    private TaCustomClassificationVo classification;
    private TaCategoryVo category;
    /**
     * 关联列表
     */
    private List<TaAssociationVo> associationList;

    public void setImage(Long image) {
        this.image = image;
        this.imageUrl = image;
    }
}
